@font-face {
  font-family: 'DIN';
  src: url('../fonts/DIN-Bold.otf');
}

html,
body {
  max-width: 75rem;
  // min-height: 100vh;
  margin: 0 auto !important;
  padding: 0;
  -webkit-user-select: none;
  user-select: none;
  font-family: 'PingFang SC', 'PingFangSC-Regular', 'Heiti SC', 'Helvetica Neue', Helvetica, STHeiTi,
    sans-serif !important;
  font-size: 10px;
  font-weight: 400;
  overflow: auto;

  white-space: pre-wrap;
  word-wrap: break-word;
  word-break: break-all;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  outline: none;
}

*,
*:before,
*:after {
  margin: 0;
  padding: 0;
  /*防止点击之后元素出现闪烁*/
  -webkit-tap-highlight-color: transparent;
}

*:focus {
  outline: 0;
}

input {
  border-radius: 0;
}

a {
  text-decoration: none;
}

//消除button的默认样式
button,
textarea {
  border: none;
  margin: 0;
  padding: 0;
  outline: none; //消除默认点击蓝色边框效果
  display: block;
}

button {
  cursor: pointer;
}
/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
  border: none;
}

pre {
  white-space: pre-wrap;
  word-wrap: break-word;
}

a,
img {
  /* 禁止长按链接与图片弹出菜单 */
  -webkit-touch-callout: none;
}

ul,
li {
  list-style: none;
  margin: 0;
  padding: 0;
}

// 主题代码
body {
  // --themeBgColor: #fff;
  // --themeColor: #111;
  // --playBtnBgColor: transparent;
  // --mainThemeColor: #ffc600;
  // --textBlackColor: #666666;
  // --textGrayColor: #888888;
  // --textBrightColor: #cccccc;
  // // border or background
  // --bbColor: #1b1b1b;
  // // whole background-color
  // --wbColor: #111111;
  // transition: all 0.4s;
}

.page {
  width: 100%;
  min-height: 100vh;
  padding: 0 4rem;
}

.single-line-ellipsis {
  -webkit-line-clamp: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}

.multiple-line-ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}

.double-line-ellipsis {
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}

.triple-line-ellipsis {
  -webkit-line-clamp: 3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}

.five-line-ellipsis {
  -webkit-line-clamp: 3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}

::placeholder {
  color: var(--textGrayColor);
}
.num-font {
  font-family: DIN;
}

.flex {
  display: flex;
}

.flex-align {
  display: flex;
  align-items: center;
}

.flex-align-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-col-center {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.avatar {
  overflow: hidden;
  border-radius: 50%;
}

img {
  font-size: 0;
  display: block;
}
.no-more {
  text-align: center;
  font-size: 16px;
  color: #888888;
}
.no-results {
  text-align: center;
  font-size: 24px;
  color: #888888;
}

.primary-btn {
  height: 4.7rem;
  background: #2247ff;
  border-radius: 0.3rem;
  font-size: 1.7rem;
  font-weight: 500;
  color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  flex: 1;
  margin-right: 1rem;

  &:last-child {
    margin-right: 0;
  }

  &.single {
    width: 33.5rem;
    flex: none;
  }

  &.fixed {
    position: fixed;
    bottom: 2rem;
    margin-left: -16.7rem;
    left: 50%;
    z-index: 20;
  }

  &.shadow {
    box-shadow: 0px 1.9rem 2.3rem 0.6rem rgba(0, 0, 0, 0.5);
  }

  &.disabled {
    background: #919191;
    color: #ffffff;
  }

  &.white {
    background: #ffffff;
    border: 1px solid #111111;
    color: #111111;
  }
}

.price-num {
  &:before {
    content: '¥';
  }
}

.toast {
  padding: 1rem !important;
  min-width: 10rem !important;
  min-height: 5rem !important;
  font-size: 1.2rem !important;
  width: 20rem !important;
  margin-left: -10rem !important;
}
